package com.jml.单例模式;

public class 饿汉式001 {
    private static final 饿汉式001 INSTANCE ;

    static {
        INSTANCE = new 饿汉式001();
    }

    private 饿汉式001(){
    }

    public static 饿汉式001 getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        饿汉式001 instance = 饿汉式001.getInstance();
    }
}
